package com.net.common.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author  on 2015/5/31.
 * 基础的Domain
 * id 必须为Long, 同时唯一
 * create_time、modify_time是数据修改时间,不要用到业务逻辑里
 */
public class CommonDomain implements Serializable {
    private Long id;  //唯一Id

    private LocalDateTime createTime;  // 创建时间

    private LocalDateTime modifyTime;  //更新时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }
}
